<?php

use yii\db\Migration;
use yii\db\Schema;

class m170606_041504_ADD_COLUMN_ORDER_CONCAT extends Migration
{
    public function up()
    {

         $this->addColumn('{{order}}', 'username', Schema::TYPE_STRING. "(64) null COMMENT ' 联系人' ");
         $this->addColumn('{{order}}', 'phone',    Schema::TYPE_STRING. "(32) null COMMENT ' 联系电话' ");
         $this->addColumn('{{order}}', 'company',  Schema::TYPE_STRING. "(64) null COMMENT ' 联系人公司' ");
    }

    public function down()
    {
        echo "m170606_041504_ADD_COLUMN_ORDER_CONCAT cannot be reverted.\n";

        return false;
    }

    /*
    // Use safeUp/safeDown to run migration code within a transaction
    public function safeUp()
    {
    }

    public function safeDown()
    {
    }
    */
}
